package com.myspring.service;

import com.github.pagehelper.Page;
import com.myspring.entity.Article;
import com.myspring.entity.Category;
import com.myspring.entity.User;

import java.util.Date;
import java.util.List;

public interface MyService {
    public List<Article> queryArticleByUid(Integer uid) throws  Exception;

    public User checkUser(String username,String password) throws  Exception;
    public List<Article> queryArticleById(Integer id) throws  Exception;
    public  Boolean deleteById(Integer id) throws  Exception;
    public Article  queryArticleById2(Integer id) throws  Exception;
    public List<Category> queryAllCate() throws  Exception;
    public Boolean addArticle(Integer uid, Date edittime,String mdcontent, String title) throws Exception;
    public  Boolean updatePassword(Integer uid,String password) throws  Exception;
    public Page<User> queryAllUser(Integer pageNum) throws  Exception;
    public Boolean updateArticle(Integer id,String mdcontent) throws  Exception;
}
